package test.overload;

/**
 * @name 菠菜
 * @date 2024-09-01 15:30
 */
public class Names {
    public void sleep(){
        System.out.println("睡觉");
    }

    public void sleep(String name){
        System.out.println("睡觉，名字是："+name);
    }

    public void eat(){
        System.out.println("吃饭");
    }
    public void eat(String name){
        System.out.println("吃饭，名字是："+name);
    }
}
